    //异步Ajax的post form 请求
    //formId
    //divId返回结果的加载div
	function reqSynSubmitForm(formId,pageNo,divId){
		console.log("======="+pageNo)
		$("input[type='button']").attr("disabled",true);
		$("#" +formId).ajaxSubmit(
				{
					dataType : "html",
					type : "post",
					beforeSerialize :function(formDa,options){
						$("#pageNo").val(pageNo);
						//$("#"+formId).find("input[name='pageNo']").val(pageNo);
						
					},
					beforeSubmit : function(formData, jqForm, options) {
						return true;
					},
					error : function(result, b) {
						$alert(JSON.stringify(requestDataresult));
						$(".button").attr("disabled",false);
					},
					success : function(responseText, statusText) {
						$("#"+divId).html(responseText);
						$("input[type='button']").attr("disabled",false);
					}
				});
	}
	
	
	function reqsynPostForm(formId,divId){
		$(".button").attr("disabled",true);
		$("#" +formId).ajaxSubmit(
				{
					dataType : "html",
					type : "post",
					beforeSubmit : function(formData, jqForm, options) {
						return true;
					},
					error : function(result, b) {
						alert(result);
						$(".button").attr("disabled",false);
					},
					success : function(responseText, statusText) {
						$("#"+divId).html(responseText);
						$(".button").attr("disabled",false);
					}
				});
	}
    
	function postLoadUrlToDiv(url,divId){
		 $.ajax({
			 url:url,
			 cache:false,
			 type:"post",
			 success:function(responseText, statusText){
					$("#" + divId).html(responseText);
			 },
			 error :function(xRequest,xStatus,error){
				 alert("error "+xStatus);
			 }
		 });
	}
	
	function postDataUrlToDiv(url,divId,data){
		 $.ajax({
			 url:url,
			 cache:false,
			 type:"post",
			 data:data,
			 dataType:'html',
			 success:function(responseText, statusText){
					$("#" + divId).html(responseText);
			 },
			 error :function(xRequest,xStatus,error){
				 alert("error "+xStatus);
			 }
		 });
	}
	
	
	/**
	* url post 的url
	* succFun为成功回调方法
	* failFun为失败回调方法
	*/
	function ajaxPostWithJson(url,succFun,failFun){
		$.ajax({
			   type : "POST",
			   url : url,
			   cache : false,
			   dataType : 'json',
			   success:function(resp){
				   if(typeof succFun == 'function'){
				  	 succFun(resp);
				   }
			 	},
			   error :function(error){
				   if(typeof failFun == 'function'){
				  	 failFun(error);
				   } else {
					   alert(error);
				   }
			 	}
			});
	}
	
	function popWinOpenAjaxByParam(id,name,url,width,height,jsonParam){
		var dhxWins_ = new dhtmlXWindows();
		var scrWid = window.screen.width;
		var scrHei = window.screen.height;
		var fmLeft = (scrWid - width)/2;
		var fmTop = (scrHei - height)/2;
		var dhxWins_1 = dhxWins_.createWindow(id, 100, 50, width, height);
		dhxWins_1.setText(name);
		dhxWins_1.setModal(true);
		dhxWins_1.attachURL(url, true, jsonParam);
		return dhxWins_1;
	}
	
	function popWinOpenAjax(id,name,url,width,height){
		var dhxWins_ = new dhtmlXWindows();
		var scrWid = window.screen.width;
		var scrHei = window.screen.height;
		var fmLeft = (scrWid - width)/2;
		var fmTop = (scrHei - height)/2;
		var dhxWins_1 = dhxWins_.createWindow(id, 100, 50, width, height);
		dhxWins_1.setText(name);
		//dhxWins_1.denyResize();
		dhxWins_1.setModal(true);
		dhxWins_1.attachURL(url, true, true);
		return dhxWins_1;
	}
	
	function popWinOpenAjaxFrame(id,name,url,width,height){
		var dhxWins_ = new dhtmlXWindows();
		var scrWid = window.screen.width;
		var scrHei = window.screen.height;
		var fmLeft = (scrWid - width)/2;
		var fmTop = (scrHei - height)/2;
		var dhxWins_1 = dhxWins_.createWindow(id, 200, 50, width, height);
		dhxWins_1.setText(name);
		//dhxWins_1.denyResize();
		dhxWins_1.setModal(true);
		dhxWins_1.attachURL(url, false, true);
		return dhxWins_1;
	}
	
	function popWinOpenResOrgControl(url,divId,jsonParam){
		var dhxWins_ = new dhtmlXWindows();
		var scrWid = window.screen.width;
		var scrHei = window.screen.height;
		var fmLeft = (scrWid - 600)/2;
		var fmTop = (scrHei - 400)/2;
		var dhxWins_1 = dhxWins_.createWindow(divId, 100, 50, 680, 430);
		dhxWins_1.setText("查询机构");
		dhxWins_1.setModal(true);
		dhxWins_1.attachURL(url, true,jsonParam);
		return dhxWins_1;
	}
	
	function postSaveUserOutClickAvt(url,resUrl,name){
		var data = "reqUrl=" + resUrl + "&reqName=" + name;
		 $.ajax({
			 url:url,
			 cache:false,
			 type:"post",
			 data : data,
			 dataType : 'json',
			 success:function(responseText, statusText){
			 },
			 error :function(xRequest,xStatus,error){
				 
			 }
		 });
	}
	
	$.ajaxSetup ({
	    cache: false
	}); 
	
	
	function isDecimalOrNumber(value){
		var re = /^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/;
		return re.test(value);
	}
	
	function isNumber(value){
		var re = /^-?[1-9]?$|^-?0?$|^-?[1-9]+[0-9]*?$/;
		return re.test(value);
	}
	
	function checkDecNum(param){
		if(param != null && param != ''){
			if(!isDecimalOrNumber(param)){
				return true;
			}else{
				return false;
			}
		}
	}
	
	function checkNum(param){
		if(param != null && param != ''){
			if(!isNumber(param)){
				return true;
			}else{
				return false;
			}
		}
	}
	
	function japMessage(msg) {
		dhtmlx.message(
				{
				    text:msg,
				    expire:1000
				}		
		);
	}
	
	function japAlert(msg) {
		dhtmlx.alert({
			title:"提示",
			ok:"确定",
			text:msg
		});
	}
	function japWarn(msg) {
		dhtmlx.alert({
			title:"警告",
			type:"alert-warning",
			ok:"确定",
			text:msg
		});
	}
	function japError(msg) {
		dhtmlx.alert({
			title:"错误",
			type:"alert-error",
			ok:"确定",
			text:msg
		});
	}
	